from django.urls import path
from . import views
urlpatterns = [
    path('api/v1/rbac/login',views.Login.as_view()),
    path('api/v1/rbac/staffs', views.Userview.as_view()),
    path('api/v1/rbac/staff/<int:id>', views.UserInfo.as_view()),
    path('api/v1/rbac/deps', views.DepView.as_view()),
    path('api/v1/rbac/dep/<int:id>', views.DepInfo.as_view()),
    path('api/v1/rbac/jobs', views.JobView.as_view()),
    path('api/v1/rbac/job/<int:id>', views.JobInfo.as_view()),
    path('api/v1/rbac/ranks', views.RankView.as_view()),
    path('api/v1/rbac/rank/<int:id>', views.RankInfo.as_view()),
    path('api/v1/rbac/roles', views.RoleView.as_view()),
    path('api/v1/rbac/role/<int:id>', views.RoleInfo.as_view()),
    path('api/v1/rbac/powers', views.PowerView.as_view()),
    path('api/v1/rbac/power/<int:id>', views.PowerInfo.as_view()),
    path('api/v1/rbac/role-power/<int:id>', views.RolePower.as_view()),
]